<include file="Common:header" />
<script src="<{:__PUBLIC__}>/js/city.js" type="text/javascript"></script>
<table id="columns">
<tr>
    <td id="main">
        <div class="contenter">
            <{$hook['pub_left_top']}>
            <div class="pubtop">
                <img src="<{:__PUBLIC__}>/images/indexdr.png">
                <ul class="imgList" id="imgList">
                    <php>foreach($pubtop as $val){</php>
                    <li><a href="<{:SITE_URL}>/<{$val[user_name]}>"><img src="<{:sethead($val[user_head])}>" width="88" height="88" /></a><p class="pbg"><a href="<{:SITE_URL}>/<{$val[user_name]}>" style="color:#ffffff"><{$val[nickname]}></a></p></li>
                    <php>}</php>
                </ul>
            </div>
            <{$hook['pub_left_mid']}>
            <div class="indexh">
                <php>if($t=='index'){</php><span class="tabon"><{:L('all_saying')}></span><php>}else{</php><span class="taboff"><a href="<{:SITE_URL}>/Pub"><{:L('all_saying')}></a></span><php>}</php>
                <php>if($t=='hot'){</php><span class="tabon"><{:L('hot_talk')}></span><php>}else{</php><span class="taboff"><a href="<{:SITE_URL}>/Pub?t=hot"><{:L('hot_talk')}></a></span><php>}</php>
                <php>if($t=='city'){</php><span class="tabon"><{:L('city_talk')}></span><php>}else{</php><span class="taboff"><a href="<{:SITE_URL}>/Pub?t=city&c=<{:rawurlencode($myc)}>"><{:L('city_talk')}></a></span><php>}</php>
                <php>if($t=='mobile'){</php><span class="tabon"><{:L('mobile_talk')}></span><php>}else{</php><span class="taboff"><a href="<{:SITE_URL}>/Pub?t=mobile"><{:L('mobile_talk')}></a></span><php>}</php>
                <php>if($t=='photo'){</php><span class="tabon"><{:L('photo_talk')}></span><php>}else{</php><span class="taboff"><a href="<{:SITE_URL}>/Pub?t=photo"><{:L('photo_talk')}></a></span><php>}</php>
                <php>if($t=='video'){</php><span class="tabon"><{:L('video_talk')}></span><php>}else{</php><span class="taboff"><a href="<{:SITE_URL}>/Pub?t=video"><{:L('video_talk')}></a></span><php>}</php>
				<php>if($t=='fuwu'){</php><span class="tabon"><{:L('fuwujineng')}></span><php>}else{</php><span class="taboff"><a href="<{:SITE_URL}>/Pub?t=fuwu"><{:L('fuwujineng')}></a></span><php>}</php>
            </div>
            <php>if($_GET['q']){</php>
                <div class="indexsearch"><{:L('below_include')}> "<font color="red"><b><{$_GET['q']}></b></font>" <{:L('this_characters')}></div>
            <php>}else if ($t=='city') {</php>
                <div class="indexsearch">
                <ul class="pubcity">
                    <li <php>if(!$c){</php>class='selected'<php>}</php>><a href="<{:SITE_URL}>/Pub?t=city">全部</a></li>
                    <li <php>if($c=='北京'){</php>class='selected'<php>}</php>><a href="<{:SITE_URL}>/Pub?t=city&c=<{:rawurlencode('北京')}>">北京</a></li>
                    <li <php>if($c=='上海'){</php>class='selected'<php>}</php>><a href="<{:SITE_URL}>/Pub?t=city&c=<{:rawurlencode('上海')}>">上海</a></li>
                    <li <php>if($c=='广州'){</php>class='selected'<php>}</php>><a href="<{:SITE_URL}>/Pub?t=city&c=<{:rawurlencode('广州')}>">广州</a></li>
                    <li <php>if($c=='南京'){</php>class='selected'<php>}</php>><a href="<{:SITE_URL}>/Pub?t=city&c=<{:rawurlencode('南京')}>">南京</a></li>
                    <li <php>if($c=='江苏'){</php>class='selected'<php>}</php>><a href="<{:SITE_URL}>/Pub?t=city&c=<{:rawurlencode('江苏')}>">江苏</a></li>
                    <li <php>if($c=='四川'){</php>class='selected'<php>}</php>><a href="<{:SITE_URL}>/Pub?t=city&c=<{:rawurlencode('四川')}>">四川</a></li>
                    <php>if($c && $c!='北京' && $c!='上海' && $c!='广州' && $c!='南京' && $c!='江苏' && $c!='四川'){</php>
                    <li class='selected'><a href="<{:SITE_URL}>/Pub?t=city&c=<{:rawurlencode($c)}>"><{$c}></a></li>
                    <php>}</php>
                </ul>
                <div class="citymore">
                    <div class="more"></div>
                    <div class="citys">
                    <select name="livesf" id="livesf" onchange="loadcity('livesf','livecity')">
                    <option value="">选择省份</option>
                    <php>foreach($province as $val){</php>
                        <option value="<{$val[name]}>" pid="<{$val[id]}>"><{$val[name]}></option>
                    <php>}</php>
                    </select>
                    <select name="livecity" id="livecity"><option value="">选择城市</option></select>
                    <button id="selectcity" class="button5"><{:L('sure')}></button>
                    </div>
                    </div>
                <div class="clearline"></div>
                </div>
            <php>}</php>
            <div id="stream" class="message">
                <ol class="wa">
                    <php>if(count($content)>0){</php>
                        <php>foreach($content as $val){</php><{:$ctent->loadoneli($val)}><php>}</php>
                    <php>}else{</php>
                        <li class="unlight" id="nonemsg"><{:L('nothing_here')}></li>
                    <php>}</php>
                </ol>
            </div>  
        </div>
        </td>
        <td id="sidebar" rowspan="2">
        <div class="contenter">
            <{$hook['pub_side_top']}>
            <!-- 侧边啦 -->
            <{$pubside}>
            <{$hook['pub_side_bottom']}>
        </div>
    </td>
</tr>
<tr>
    <td height="36px"><div id="indexpage" class="page"><{$page}></div></td>
</tr>
</table>
<script type="text/javascript">
$('.more').toggle(function() {$('.citys').show();},function(){$('.citys').hide();});
$('#livesf').change(function(){
    $('#livecity').prepend('<option>不限</option>');
});
$('#selectcity').click(function(){
    var city=$('#livecity').val();
    var sf=$('#livesf').val();
    var urlc=siteurl+'/Pub?t=city&c='+encodeURIComponent(city);
    var urls=siteurl+'/Pub?t=city&c='+encodeURIComponent(sf);
    if (city!='' && city!='不限') {
        window.location.href=urlc;
    } else {
        if (sf!='') {
            window.location.href=urls;
        }  
    }
});
</script>
<include file="Common:foot" />